package edu.msg.jthr.backend.repository;

import java.util.List;

import javax.ejb.Local;

import edu.msg.jthr.backend.model.AbstractModel;

@Local
public interface BaseRepository<T extends AbstractModel, I> {

	public void insert(T obj) throws RepositoryException;

	public void delete(T obj) throws RepositoryException;

	public T update(T obj) throws RepositoryException;

	public List<T> getAll() throws RepositoryException;

	public T getById(I id) throws RepositoryException;

}
